home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2005 October / PCWOCT05.iso / Software / FromTheMag / XAMPP 1.4.14 / xampp-win32-1.4.14-installer.exe / xampp / php / pear / Translation / translationutf8.class.php < prev   
PHP Script  |  2004-03-24  |  596b  |  28 lines

  1. <?
  2. /**
  3.  * File translationutf8.class.php
  4.  *
  5.  * @package Translation
  6.  */
  7. /**
  8.  * require base class
  9.  */
  10. require_once 'Translation'.DIRECTORY_SEPARATOR.'translation.class.php';
  11.  
  12. /**
  13.  * class that allows using Translation class with UTF-8 DB encoding
  14.  * @package Translation
  15.  */
  16. class TTranslationUTF8 extends Translation
  17. {
  18.     function TTranslationUTF8($PageName, $LanguageID, $pear_DSN, $CustomTables = 0)
  19.     {
  20.         $this->Translation($PageName, $LanguageID, $pear_DSN, $CustomTables);
  21.     }
  22.  
  23.     function gstr($StringName, $Params = array())
  24.     {
  25.         return utf8_decode(parent::gstr($StringName, $Params));
  26.     }
  27. }
  28. ?>